home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / GCC 1.37.1r14 / usr / gcc archive / gcc / gcc.rsrc / TEXT_402.txt < prev    next >
Encoding:
Text File  |  1994-02-08  |  1.7 KB  |  31 lines

  1. Preprocessor
  2.  
  3. The function of the C-preprocessor is to merge your program with
  4. user and system declarations and macros. In order to use the Macintosh
  5. Toolbox, you will need to obtain the MPW include files from ftp.apple.com
  6. or from some other compiler. Due to copyright reasons it is not possible
  7. to distribute these include files with this package. The previous version
  8. of this program, available at the same site that you got this, required the
  9. header files to be filtered into a special gcc syntax. This is no longer
  10. necessary. You can use the include files as is. Just select the appropriate
  11. directory using the GCC/Search Paths menu option.
  12.  
  13. Don't be surprised if you get various warnings and/or errors with these
  14. header files. The checking with gcc is stricter than other compilers, also
  15. some obscure Apple data types may not work with this compiler.
  16.  
  17. To use the pre-processor, bring your C-source window to the front
  18. and invoke the GCC/Preprocess option, a new window should appear
  19. with the .c changed to a .i, also an error window may open. You should
  20. only proceed to the next stage, compilation, if there are no errors.
  21.  
  22. If you are curious, you will notice that there are loads of blank lines in the
  23. .i file. This is because the preprocessor preserves line numbering so that 
  24. any compilation errors will relate back to the appropriate source line
  25. number. However you will need to use an external editor such as
  26. BBEdit-2.2.2 (freeware) to zoom in on a given source text line.
  27. Because of the wide availability of mac compatible editors, the built-in
  28. editor offers minimal functionality. However, before you ask, it does 
  29. allow you to view output files of over 32K. In this case the file will
  30. be static text (view only, no editing)
  31.